#include<bits/stdc++.h>
using namespace std;
const int N = 114514;
int t;
int n,m;
int a[N],c[N];
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cin >> n >> m;
    for(int i = 1;i <= n;i ++ ){
        cin >> a[i];
    }
    for(int i = 1;i <= m;i ++ ){
        cin >> c[i];
    }
    cout << rand() << endl;
}